﻿/*
* 时间：2019年7月 
* 作者：潘意
*/
using EMRView;
using HC.View;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;

namespace EMRView.Extensions.Command
{
    /// <summary>
    /// 命令接口
    /// </summary>
    public abstract class BaseCommand
    {

        public BaseCommand()
        {
        }

        /// <summary>
        /// 命令图标
        /// </summary>
        public abstract Icon CommandIcon { get; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="view">执行命令的控件实体</param>
        /// <param name="showDefaultUI">是否显示默认的命令窗体</param>
        /// <param name="param">执行命令需要传入的参数</param>
        public abstract object Execute(HCEmrView _view, bool showDefaultUI = false, params object[] para);

        /// <summary>
        /// 初始化控件函数，部分命令需要初始化绑定控件
        /// </summary>
        public abstract void InitControl(object control);
    }
}
